package com
{
	import flash.display.Sprite;

	public class DecorationItems
	{
		private static var instanceGet:DecorationItems;
		
		public static function getInstance():DecorationItems
		{
			if(instanceGet == null)
			{
				instanceGet = new DecorationItems();
			}
			return instanceGet;
		}
		
		public function decorationMenuItem(str:String):Sprite
		{
			var sprite:Sprite = new Sprite();
			switch(str)
			{
				case "color":
				{
					var custom1:WallColor1 = new WallColor1();
					sprite.addChild(custom1);
					break;
				}
				case "curtain":
				{
					var custom2:Curtain1 = new Curtain1();
					sprite.addChild(custom2);
					break;
				}
				case "wallpaper":
				{
					var custom3:wallPaper1 = new wallPaper1();
					sprite.addChild(custom3);
					break;
				}
				case "Poster":
				{
					var custom4:Poster1 = new Poster1();
					sprite.addChild(custom4);
					break;
				}
				case "Guitar":
				{
					var custom5:Guitar0 = new Guitar0();
					sprite.addChild(custom5);
					break;
				}
				case "Drum":
				{
					var custom6:Drum0 = new Drum0();
					sprite.addChild(custom6);
					break;
				}
				case "check":
				{
					var custom7:KeyBoard0 = new KeyBoard0();
					sprite.addChild(custom7);
					break;
				}
				default:
				{
					break;
				}
			}
			return sprite;
		}
		public function equipmentMenuItem(str:String):Sprite
		{
			switch(str)
			{
				case "MirrorBall":
				{
					var Ball:discoBall = new discoBall();
					return Ball;
					break;
				}
				case "Smoke":
				{
					var smoke:smokeBtn = new smokeBtn();
					return smoke;
					break;
				}
				case "Light":
				{
					var light:lightBtn = new lightBtn();
					return light;
					break;
				}
				default:
				{
					break;
				}
			}
			return null;
		}
		
		public function decorationItemFinder(str:String):Sprite
		{
			var chkStr:String = str.slice(0,str.length-1);
			var sprite:Sprite = new Sprite();
			switch(chkStr)
			{
				case "poster":
				{
					sprite.addChild(posterFinder(str));
					break;
				}
				case "wallpaper":
				{
					sprite.addChild(wallpaperFinder(str));
					break;
				}
				case "color":
				{
					sprite.addChild(colorFinder(str));
					break;
				}
				case "curtain":
				{
					sprite.addChild(curtainFinder(str));
					break;
				}
				case "Guitar":
				{
					sprite.addChild(guitarFinder(str));
					break;
				}
				case "Drum":
				{
					sprite.addChild(DrumFinder(str));
					break;
				}
				case "check":
				{
					sprite.addChild(checkFinder(str));
					break;
				}
				default:
				{
					break;
				}
			}
			return sprite;
		}
		
		public function guitarFinder(str:String):Sprite
		{
			switch(str)
			{
				case "Guitar1":
				{
					var Guitar1:Guitar0= new Guitar0();
					Guitar1.height = 84;
					Guitar1.width = 76;
					return Guitar1;
					break;
				}
				case "Guitar2":
				{
					var Guitar2:GuitarLead2 = new GuitarLead2();
					Guitar2.height = 84;
					Guitar2.width = 76;
					return Guitar2;
					break;
				}	
				case "Guitar3":
				{
					var Guitar3:GuitarLead1 = new GuitarLead1();
					Guitar3.height = 84;
					Guitar3.width = 76;
					return Guitar3;
					break;
				}
				case "Guitar4":
				{
					var Guitar4:GuitarLead0 = new GuitarLead0();
					Guitar4.height = 84;
					Guitar4.width = 76;
					return Guitar4;
					break;
				}
				case "Guitar5":
				{
					var Guitar5:GuitarLead1 = new GuitarLead1();
					Guitar5.height = 84;
					Guitar5.width = 76;
					return Guitar5;
					break;
				}
				default:
				{
					break;
				}
			}
			return null;
		}
		private function DrumFinder(str:String):Sprite
		{
			switch(str)
			{
				case "Drum1":
				{
					var drum1:Drum0= new Drum0();
					return drum1;
					break;
				}
				case "Drum2":
				{
					var drum2:Drum1 = new Drum1();
					return drum2;
					break;
				}	
				case "Drum3":
				{
					var drum3:Drum2 = new Drum2();
					return drum3;
					break;
				}
				case "Drum4":
				{
					var drum4:Drum3 = new Drum3();
					return drum4;
					break;
				}
				case "Drum5":
				{
					var drum5:Drum4 = new Drum4();
					return drum5;
					break;
				}
				default:
				{
					break;
				}
			}
			return null;
		}
		private function checkFinder(str:String):Sprite
		{
			switch(str)
			{
				case "check1":
				{
					var check1:KeyBoard1= new KeyBoard1();
					return check1;
					break;
				}
				case "check2":
				{
					var check2:KeyBoard0= new KeyBoard0(); 
					return check2;
					break;
				}	
				case "check3":
				{
					var check3:KeyBoard2 = new KeyBoard2();
					return check3;
					break;
				}
				case "check4":
				{
					var check4:KeyBoardD0 = new KeyBoardD0();
					return check4;
					break;
				}
				case "check5":
				{
					var check5:KeyBoardD1 = new KeyBoardD1();
					return check5;
					break;
				}	
				default:
				{
					break;
				}
			}
			return null;
		}
		public function posterFinder(str:String):Sprite
		{
			switch(str)
			{
				case "poster1":
				{
					var poster1:Poster1= new Poster1();
					
					return poster1;
					break;
				}
				case "poster2":
				{
					var poster2:Poster2 = new Poster2();
					
					return poster2;
					break;
				}	
				case "poster3":
				{
					var poster3:Poster3 = new Poster3();
					
					return poster3;
					break;
				}
				case "poster4":
				{
					var poster4:Poster4 = new Poster4();
					
					return poster4;
					break;
				}
				case "poster5":
				{
					var poster5:Poster5 = new Poster5();
					
					return poster5;
					break;
				}
				default:
				{
					break;
				}
			}
			return null;
		}
		private function wallpaperFinder(str:String):Sprite
		{
			switch(str)
			{
				case "wallpaper1":
				{
					var wallpaper1:wallPaper1= new wallPaper1();
					return wallpaper1;
					break;
				}
				case "wallpaper2":
				{
					var wallpaper2:wallPaper2 = new wallPaper2();
					return wallpaper2;
					break;
				}	
				case "wallpaper3":
				{
					var wallpaper3:wallPaper3 = new wallPaper3();
					return wallpaper3;
					break;
				}
				case "wallpaper4":
				{
					var wallpaper4:wallPaper4 = new wallPaper4();
					return wallpaper4;
					break;
				}
				case "wallpaper5":
				{
					var wallpaper5:wallPaper5 = new wallPaper5();
					return wallpaper5;
					break;
				}
				default:
				{
					break;
				}
			}
			return null;
		}
		private function colorFinder(str:String):Sprite
		{
			switch(str)
			{
				case "color1":
				{
					var color1:WallColor1= new WallColor1();
					return color1;
					break;
				}
				case "color2":
				{
					var color2:WallColor2 = new WallColor2();
					return color2;
					break;
				}	
				case "color3":
				{
					var color3:WallColor3 = new WallColor3();
					return color3;
					break;
				}
				case "color4":
				{
					var color4:WallColor4 = new WallColor4();
					return color4;
					break;
				}
				case "color5":
				{
					var color5:WallColor5 = new WallColor5();
					return color5;
					break;
				}	
				default:
				{
					break;
				}
			}
			return null;
		}
		private function curtainFinder(str:String):Sprite
		{
			switch(str)
			{
				case "curtain1":
				{
					var curtain1:Curtain1= new Curtain1();
					return curtain1;
					break;
				}
				case "curtain2":
				{
					var curtain2:Curtain2 = new Curtain2();
					return curtain2;
					break;
				}	
				case "curtain3":
				{
					var curtain3:Curtain3 = new Curtain3();
					return curtain3;
					break;
				}
				case "curtain4":
				{
					var curtain4:Curtain4 = new Curtain4();
					return curtain4;
					break;
				}
				case "curtain5":
				{
					var curtain5:Curtain5 = new Curtain5();
					return curtain5;
					break;
				}
				default:
				{
					break;
				}
			}
			return null;
		}
		public function DecorationItems()
		{
			
			
		}
	}
}